export default {
     namespaced: true,
    state: {
        userInfo: {},
        router: [],
        flag:true
    },
    
    mutations: {
        LOGIN: (state, data) => state.userInfo = data,
        ROUTER: (state, data) =>  state.router = data
        
    },
    actions: {
        login: ({ commit }, data) => commit('LOGIN', data),
        router: ({ commit }, data) => commit('ROUTER', data),
    },
    getters: {

    },
};